package org.jeecg.modules.travel.service;


import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.modules.travel.dto.likes.AppLikePageDto;
import org.jeecg.modules.travel.dto.likes.LikeAddDto;
import org.jeecg.modules.travel.entity.JhLikes;
import org.jeecg.modules.travel.vo.likes.AppLikeRecordVo;
import org.jeecg.modules.travel.vo.likes.PcLikesRecordVo;

/**
 * @Description: 用户点赞表
 * @Author: jeecg-boot
 * @Date:   2025-04-19
 * @Version: V1.0
 */
public interface IJhLikesService extends IService<JhLikes> {

    /**
     * 移动端点赞
     * @param dto 参数
     * @return {@code String }
     * @author wentao.wang
     * @date 2025-04-20 13:43:42
     */
    String giveThumbsUp(LikeAddDto dto);

    /**
     * 移动端点赞分页列表
     * @param page 分页
     * @param queryWrapper 条件
     * @return {@code IPage<JhLikes> }
     * @author wentao.wang
     * @date 2025-04-20 14:59:09
     */
    IPage<AppLikeRecordVo> appPageList(AppLikePageDto dto,Page<JhLikes> page, QueryWrapper<JhLikes> queryWrapper);

    String cancelLikes(String id);

    String cancelContent(String contentId, String type, String userId);

    IPage<PcLikesRecordVo> queryPageList(Page<JhLikes> page, QueryWrapper<JhLikes> queryWrapper);
}
